/**
 * Created by Administrator on 2016/7/14 0014.
 */
export default  class Tool {
    static setPageTitle(title) {
        document.title = title;
        if (navigator.userAgent.toLocaleLowerCase().indexOf('micromessenger') !== -1 &&
            (navigator.userAgent.toLocaleLowerCase().indexOf('iphone') !== -1 || navigator.userAgent.toLocaleLowerCase().indexOf('ipad') !== -1)) {
            var $iframe = $('<iframe src="/favicon.ico"></iframe>').on('load', function () {
                setTimeout(function () {
                    $iframe.off('load').remove()
                }, 0)
            }).appendTo($('body'));
        }
    }
}